import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'

const Base: AppRouteRecordRaw = {
  path: '/system',
  name: 'system',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '设置',
    requiresAuth: true,
    icon: 'icon-settings',
    order: 11,
  },
  children: [
    {
      path: '/system/address', // The midline path complies with SEO specifications
      name: 'systemaddress',
      component: () => import('@/views/system/address.vue'),
      meta: {
        locale: '售后地址设置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/system/sellerInfo', // The midline path complies with SEO specifications
      name: 'systemsellerInfo',
      component: () => import('@/views/system/sellerInfo.vue'),
      meta: {
        locale: '商户资料设置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/system/withdraw', // The midline path complies with SEO specifications
      name: 'systemwithdraw',
      component: () => import('@/views/system/withdraw.vue'),
      meta: {
        locale: '提现管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/system/hexList', // The midline path complies with SEO specifications
      name: 'systemhexList',
      component: () => import('@/views/system/hexList.vue'),
      meta: {
        locale: '核销员管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default Base
